<?php
$config = array(
 'warehouse/save' => array(
array(
                                            'field' => 'name',
                                            'label' => 'Name',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'description',
                                            'label' => 'Description',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'region',
                                            'label' => 'Region',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'city',
                                            'label' => 'Ciy',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'address',
                                            'label' => 'Address',
                                            'rules' => 'required'
                                            )
                                            ),
 'transaction/save' => array(
                                            array(
                                            'field' => 'commodity',
                                            'label' => 'Commodity',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'pickupaddress',
                                            'label' => 'Pick Up Address',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'dateofpickup',
                                            'label' => 'Date  of Pick Up',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'deliverypoint',
                                            'label' => 'Delivery Point',
                                            'rules' => 'required'
                                            )
                                            )

                                            ,
 'users/save' => array(
                                            array(
                                            'field' => 'firstname',
                                            'label' => 'First Name',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'lastname',
                                            'label' => 'Last Name',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'email',
                                            'label' => 'Email Address',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'username',
                                            'label' => 'Username',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'password',
                                            'label' => 'Password',
                                            'rules' => 'required'
                                            )
                                            )
                                             
                                            ,
 'container/save' => array(
                                            array(
                                            'field' => 'name',
                                            'label' => 'Name',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'description',
                                            'label' => 'Description',
                                            'rules' => 'required'
                                            )
                                            )
                                            ,
 'shipper/save' => array(
                                            array(
                                            'field' => 'name',
                                            'label' => 'Name',
                                            'rules' => 'required'
                                            ),
                                            array(
                                            'field' => 'description',
                                            'label' => 'Description',
                                            'rules' => 'required'
                                            )
                                            )
                                            );
